package service

import groovy.time.TimeCategory

class Reservation {
	
	String name
	Date dateBegSession
	Date dateEndSession
	Room room
	
    static constraints = {
		dateBegSession(blank:false)
		dateEndSession(blank:false) /* min: (Date)dateDebCours) */
    }
	/**
	 * Show Reservation.
	 */
	public String toString() {
		return "Reservation : "+name+" - Salle: "+room.name+" - Date de Debut: "+dateBegSession+" - Dade de Fin"+dateEndSession
	}
}
